package com.qfedu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//学生相关
public class Student {
    //id
    private int id ;
    //学号
    private String u_no;
    //学生名
    private String name;
    //性别
    private String sex;
    //生日
    // 将接收的数据 yyyy-MM-dd hh:mm:ss 转换为 Date  // 转换json 时将 date 转换为 字符串
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd") // 将 util.Date 转化为 字符进行保存
    private Date birthday;
    //身份证
    private String cardno;
    //学校名称
    private String schoolname;
    //教育程度
    private String education;
    private String phone;
    private String email;
    private String qq;
    //
    private  int cno;
    //介绍人
    private int introno;

    private int flag;

    // 将接收的数据 yyyy-MM-dd hh:mm:ss 转换为 Date  // 转换json 时将 date 转换为 字符串
//    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd") // 将 util.Date 转化为 字符进行保存
    private Date entrytime;
    //班级名
    private String g_name;

    public Student() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getU_no() {
        return u_no;
    }

    public void setU_no(String u_no) {
        this.u_no = u_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public String getSchoolname() {
        return schoolname;
    }

    public void setSchoolname(String schoolname) {
        this.schoolname = schoolname;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public int getCno() {
        return cno;
    }

    public void setCno(int cno) {
        this.cno = cno;
    }

    public int getIntrono() {
        return introno;
    }

    public void setIntrono(int introno) {
        this.introno = introno;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public Date getEntrytime() {
        return entrytime;
    }

    public void setEntrytime(Date entrytime) {
        this.entrytime = entrytime;
    }

    public String getG_name() {
        return g_name;
    }

    public void setG_name(String g_name) {
        this.g_name = g_name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", u_no='" + u_no + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", cardno='" + cardno + '\'' +
                ", schoolname='" + schoolname + '\'' +
                ", education='" + education + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", qq='" + qq + '\'' +
                ", cno=" + cno +
                ", introno=" + introno +
                ", flag=" + flag +
                ", entrytime=" + entrytime +
                ", g_name='" + g_name + '\'' +
                '}';
    }
}
